<ul class="dropdown-menu">
    {% if create_pros %}
        <li><i class="fa fa-navicon" aria-hidden="true"></i> 我的项目</li>
        {% for create_pro in create_pros %}
            <li><a href="{% url 'main:dashboard' create_pro.id %}">{{ create_pro.project_title }}</a></li>
        {% endfor %}
        <li role="separator" class="divider"></li>
    {% endif %}

    {% if join_pros %}
        <li><i class="fa fa-navicon" aria-hidden="true"></i> 参与项目</li>
        {% for join_pro in join_pros %}
            <li><a href="{% url 'main:dashboard' join_pro.id %}">{{ join_pro.project_title }}</a></li>
        {% endfor %}
        <li role="separator" class="divider"></li>
    {% endif %}

    <li><a href="{% url 'main:project' %}">所有项目</a></li>
</ul>